package models.roleAndPermessions;

import play.db.ebean.Model;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by wkhl on 2016/12/27.
 */
@Entity
@Table(name = "roles")
public class Role extends Model{
    public static Finder<Integer,Role> finder =
            new Finder<Integer,Role>(Integer.class, Role.class);
    @Id
    public  Integer  id;
    public  String  text;//角色名称


    public static List<Role> findAll(){
        return finder.findList();
    }

}
